People often include references to other stuff in articles, and it would be nice if Gnus could just fetch whatever it is that people talk about with the minimum of fuzz when you hit RET or use the middle mouse button on these references.
Gnus adds buttons to certain standard references by default: Well-formed URLs, mail addresses, Message-IDs, Info links, man pages and Emacs or Gnus related references. This is controlled by two variables, one that handles article bodies and one that handles article heads:
gnus-button-alist
(regexp button-par use-p function data-par)
gnus-button-url-regexp and
gnus-button-mid-or-mail-regexp.evaled, and if the
result is non-nil, this is considered a match.
This is useful if you want extra sifting to avoid false
matches. Often variables named
gnus-button-*-level
are used here, See Article
Button Levels, but any other form may be used too.
So the full entry for buttonizing URLs is then
("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
gnus-header-button-alist
(header regexp button-par use-p function data-par)
header is a regular expression.
gnus-button-*-levelgnus-button-url-regexpgnus-button-man-handlergnus-button-mid-or-mail-regexpgnus-button-prefer-mid-or-mailmid or
mail, Gnus will always assume that the string is a
message ID or a mail address, respectively. If this variable is
set to the symbol ask, always query the user what
to do. If it is a function, this function will be called with
the string as its only argument. The function must return
mid, mail, invalid or
ask. The default value is the function
gnus-button-mid-or-mail-heuristic.gnus-button-mid-or-mail-heuristicmid if it's a message
IDs, mail if it's a mail address, ask
if unsure and invalid if the string is
invalid.gnus-button-mid-or-mail-heuristic-alist(RATE . REGEXP) pairs used by the
function gnus-button-mid-or-mail-heuristic.
gnus-article-button-facegnus-article-mouse-faceSee Customizing Articles, for how to buttonize articles automatically.